package com.itjin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itjin.model.domain.entity.ExamHelper;
import com.itjin.model.domain.vo.AnxietyTipsVO;
import com.itjin.model.domain.vo.ExamHelperVO;
import com.itjin.model.domain.vo.PredictedPointVO;
import com.itjin.model.domain.vo.StudyPlanVO;
import com.itjin.model.request.StudyPlanRequest;
import com.itjin.model.request.WrongQuestionRequest;

import java.util.List;

/**
 * 智能考试助手服务接口
 */
public interface ExamHelperService extends IService<ExamHelper> {

  /**
   * 获取用户所有考试助手信息
   */
  List<ExamHelperVO> getUserExamHelpers(Integer userId);

  /**
   * 创建或更新复习计划
   */
  StudyPlanVO createStudyPlan(Integer userId, StudyPlanRequest request);

  /**
   * 获取预测考点
   */
  PredictedPointVO getPredictedPoints(Integer userId, Integer courseId);

  /**
   * 添加错题记录
   */
  Boolean addWrongQuestion(Integer userId, WrongQuestionRequest request);

  /**
   * 获取考前焦虑缓解建议
   */
  AnxietyTipsVO getAnxietyTips(Integer userId, Integer courseId);

  /**
   * 更新学习进度
   */
  Boolean updateStudyProgress(Integer userId, Integer courseId, Integer progress);
}